﻿using System;
using System.Data;
using System.Linq;

namespace LayerEntity.Persona.RecursosHumanos
{
    public class EAfp
    {
        #region Constructores
        public EAfp(IDataRecord record)
        {
            this.IdAfp = (int)record["id_afp"];
            this.Descripcion = record["des_afp"].ToString();
            this.Comision =Convert.ToDouble (record["com_afp"].ToString());
            this.Seguro = Convert.ToDouble (record["seg_afp"].ToString ());
            this.Importe = Convert.ToDouble (record["imp_afp"].ToString());
            this.IdEstado = (int)record["id_estado"];
            this.Tipo = (int)record["tip_afp"];
        }

        public EAfp()
        {
            this.IdAfp = 0;
            this.Descripcion = string.Empty;
            this.Comision = 0.0;
            this.Seguro = 0.0;
            this.Importe = 0.0;
            this.IdEstado = 0;
            this.Tipo = 0;
        }

        #endregion

        #region Propiedades
           
        public int IdAfp { get; set; }

        public string Descripcion { get; set; }

        public Double Comision { get; set; }

        public Double Seguro { get; set; }

        public Double Importe { get; set; }

        public int IdEstado { get; set; }

        public int Tipo { get; set; }
        #endregion
    }
}